<?php
namespace app\modules\user\models;


use app\common\base\ApiModel;
use app\modules\user\behaviors\TimestampBehavior;

class Comment extends ApiModel{

    public static function tableName(){
        return 'user_comment';
    }

    public function behaviors()
    {
        return [
            [
                'class' => TimestampBehavior::class,
            ]
        ];
    }

    public function rules()
    {
        return [
            [['user_account_id', 'film_id', 'comment'], 'required'],
            [['comment'], 'string'],
            [['user_account_id', 'film_id', 'create_timestamp', 'create_timestamp', 'status'],'integer'],
            ['status', 'in', 'range' => [0, 1]],
        ];
    }


}